package com.h3c.ptability.entity;

import javax.persistence.*;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtRole
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_role 实体
 * Version: 1.0
 */
@ApiModel(value="PtRole对象", description="")
@Table(name = "pt_role")
public class PtRole {


    @ApiModelProperty(value = "角色编码")
    @Column(name = "role_id")
    private String roleId;

    @ApiModelProperty(value = "角色名称")
    @Column(name = "role_name")
    private String roleName;

    @ApiModelProperty(value = "角色说明")
    @Column(name = "role_remark")
    private String roleRemark;

    @ApiModelProperty(value = "应用编码（没有应用编码，说明是平台全局角色）")
    @Column(name = "app_id")
    private String appId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleRemark() {
        return roleRemark;
    }

    public void setRoleRemark(String roleRemark) {
        this.roleRemark = roleRemark;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @Override
    public String toString() {
        return "PtRole{" +
                "roleId=" + roleId +
                ", roleName=" + roleName +
                ", roleRemark=" + roleRemark +
                ", appId=" + appId +
                "}";
    }
}
